﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using static System.Runtime.InteropServices.JavaScript.JSType;

namespace Nes.Core.Buss
{
    public interface IBus
    {

        /// <summary>
        /// 为了c# 运行方便 所有的地址都用Int32表示 只用低位16
        /// </summary>
        /// <param name="address"></param>
        /// <param name="data"></param>
        void WriteByte(Int32 address, Byte data);
        void WriteWord(Int32 address, UInt16 data);
        Byte ReadByte(Int32 address);
        UInt16 ReadWord(Int32 address);
    }
}
